package com.msb.mall.product;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@MapperScan("com.msb.mall.product.dao")
@EnableDiscoveryClient //放开注册中心
@Slf4j
@ComponentScan(basePackages = "com.msb")  //扫描commons服务里的类
public class MallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run( MallProductApplication.class, args );
        log.info("启动成功。。。。。。");
    }

}
